package com.mhc.suzuki.dal.mapper.ext;

import com.mhc.suzuki.bo.CustomerBO;
import com.mhc.suzuki.dal.mapper.OrderCustomerRelMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for OrderCustomerRel.
 */

@Mapper
@Repository
public interface OrderCustomerRelExtMapper extends OrderCustomerRelMapper {

  /**
   * 根据订单号将存在的关系置为已删除
   * @param orderNo 订单号
   * @return
   */
  int updateDeletedByOrderNo(String orderNo);

  /**
   * 更换主贷人
   * @param map
   * @return
   */
  int exchangeBuyer(Map map);


  /**
   * 根据订单号查询不同客户类型的客户
   * @param paramMap
   * @return
   */
  List<CustomerBO>  selectByCustomerList(Map<String, ?> paramMap);

}
